﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using LexLib.LexemNameSpace;
using TextEditor4.Parser;
using System.Reflection;

namespace TextEditor4
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new Form1());


            /*SeqenseType tmp1 = new SeqenseType(0);
            List<IParseNodeType> myL = new List<IParseNodeType>();
            myL.Add(tmp1);
            if (myL[0] is SeqenseType)
            { }
            else
            { }*/
            /*VarNameType myVNT = new VarNameType("abc");
            object o = myVNT;
            FieldInfo myFI = myVNT.GetType().GetField("text");
            string a = (string)myFI.GetValue(o) ;
            PropertyInfo myPI = o.GetType().GetProperty("GetWord");
           // string b = (string)myPI.GetGetMethod();
            string b = (string)myPI.GetValue(o,null);*/
            //SeqenseType tmp1 = new SeqenseType(0);
            //ExpressionType tmp2 = new ExpressionType(new Lexem(new EndOfLineType(),0,2));
            //List<IParseNodeType> myL = new List<IParseNodeType>();
            //object[] obL = new object[1];
            //obL[0] = tmp2;
            //myL.Add(tmp1);
            //MethodInfo myMI = tmp1.GetType().GetMethod("addChild");
            //myMI.Invoke(myL[0], obL);
            
        }
    }
}
